package com.nowcoder.community.service;

import com.nowcoder.community.entity.DiscussPost;

import java.util.Map;

/**
 * @author bombax
 * @date 2024/10/2
 */
public interface ElasticsearchService {
    void saveDiscussPost(DiscussPost post);

    void deleteDiscussPost(int id);

    Map<String, Object> searchDiscussPost(String keyword, int current, int limit);
}
